package elitech.vietnam.myfashion.fragment;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import elitech.vietnam.myfashion.MainActivity;
import elitech.vietnam.myfashion.view.MyStyleView;

public class MyStyleFragment extends Fragment {
	
	private MainActivity mContext;
	private MyStyleView mLayoutRoot;
	
	
	
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		mContext = (MainActivity) getActivity();
	}
	
	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		mLayoutRoot = new MyStyleView(mContext);
		return mLayoutRoot;
	}
	
	@Override
	public void onResume() {
		super.onResume();
		mLayoutRoot.onResume();
	}
}
